enum GameTipInfo{
	eTipCoin,
};
enum GameTipInfo gametipinfo;
void selectHero(int menuShow){
		clrscr();
		showMenu(top,"请选择你的英雄:");
		showMenu(top_center,"w,s选择,按5开始游戏");		
		if(menuShow==1){
			showMenu(center,"->1 射手 鲁班七号");
			showMenu(bottom_center,"2 战士 凯");
			showMenu(bottom,"3 法师 武则天");
			
		}else if(menuShow==2){
			
			showMenu(center,"1 射手 鲁班七号");
			showMenu(bottom_center,"->2 战士 凯");
			showMenu(bottom,"3 法师 武则天");
		}else if(menuShow==3){
				
			showMenu(center,"1 射手 鲁班七号");
			showMenu(bottom_center,"2 战士 凯");
			showMenu(bottom,"->3 法师 武则天");
				
		}
	}
void showStart(){
	const char *txt1 = "代码荣耀v0.0912";
	const char *txt2 = "按5开始";
	const char *txt3 = "code by easydots";
	const char *txt4 = "join us:gitee.com/youquc";
	int lenStr1 = strlen(txt1);
	int lenStr2 = strlen(txt2);
	int lenStr3 = strlen(txt3);
	int lenStr4 = strlen(txt4);
	
	showMenu(top_center, txt1);
	showMenu(center, txt2);
	showMenu(bottom_center, txt3);
	showMenu(bottom, txt4);
	
	}
	void menu(){	
	char input;
	int choose = herot1;
	int lastChoose = 0;
	showStart();
	while((input = getch())!=Quit){
		txtClear();

		switch(input){
			case Up:
			if(choose>1)
			choose--;
			selectHero(choose);
			break;
			case Down:
			if(choose<3)
			choose++;
			selectHero(choose);
			break;
			case Enter:
			selectHero(choose);
			if(lastChoose==Enter || lastChoose==Up || lastChoose==Down){
				txtClear();
				startGame(choose);
				}
			break;
			case Back:
			showStart();
			break;
			}
		lastChoose = input;
	}
}
void showShop(){
	gotoxy(0,H+10);
	printf("shop:\tname\tcoin\tat\tde\tlife\n");
	printf("  [1]\teq1:\t500\t+5\t+0\t+0\n");	
	printf("  [2]\teq2:\t1000\t+0\t+5\t+50\n");
	printf("coin:%d\n",player.heros.coin);	
}
void showGameTip(int type){
	gotoxy(0,H+15);
	if(type ==eTipCoin)
	printf("control your hero \n");
}
void showGameOver(){
	clrscr();
	showMenu(top_center, "游戏结束");
	showMenu(center, "任意键重新开始，q退出游戏");
	showMenu(bottom_center, "You can visit:gitee.com/youquc to join us!");
}